package com.kuang.service;

import com.kuang.mapper.UserMapper;
import com.kuang.springcloud.pojo.Userinfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
/**
 * @description：TODO

 * @author     ：LK
 * @date       ：Created in 2021-10-26 15:08
 */

@Autowired
private UserMapper userMapper;

    @Override
    public List<Userinfo> findAll() {
        return userMapper.findAll();
    }

    @Override
    public Userinfo getuserByUsername(String username) {
        return userMapper.getuserByUsername(username);
    }

    @Override
    public int updateWhole(Userinfo user) {
        return userMapper.updateWhole(user);
    }

    @Override
    public int adduser(Userinfo user) {
        return userMapper.adduser(user);
    }
}
